<script setup>
import { ref } from 'vue'

let props = defineProps(['entityDataItem'])
let entityDataItem = props.entityDataItem

</script>


<template>
    <div class="model104-box">
        <div class="model104-box-son">
            <div class="row1">
                <img :src="entityDataItem.image0" alt="">
            </div>
            <div class="row2">
                <div class="row21">
                    <div class="li1">
                        <p class="text-overflow">{{ entityDataItem.field11 }}</p>
                    </div>
                    <div class="li2 color-grey">
                        <p class="text-overflow">{{ entityDataItem.field21 }}</p>
                        {{ entityDataItem.field21 && entityDataItem.field22 && '|' }}
                        <p class="text-overflow">{{ entityDataItem.field22 }}</p>
                    </div>
                    <div class="li3 color-grey">
                        <p class="text-overflow">{{ entityDataItem.field31 }}</p>
                    </div>
                </div>
                <div class="row22">
                    <button class="text-overflow">{{ entityDataItem.operateEventName }}</button>
                </div>
            </div>
        </div>
    </div>


</template>


<style scoped>
.model104-box {
    width: 100%;
}

.model104-box-son {
    width: 100%;
    height: 6rem;
    display: flex;
    justify-content: space-around;
    margin-bottom: 0.6rem;
}

.model104-box-son .row1 {
    width: 30%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 0.6rem;
    position: relative;
}

.model104-box-son .row1 img {
    width: 100%;
    object-fit: cover;
}

.model104-box-son .row2 {
    width: 70%;
    height: 100%;
    border-bottom: 0.1rem solid rgb(209, 209, 209);
}

.model104-box-son .row2 .row21 {
    width: 40%;
}

.model104-box-son .row2 .row22 {
    width: 60%;
    display: flex;
    justify-content: end;
}

.model104-box-son .row2 {
    height: 100%;
    display: flex;
    justify-content: space-between;
}

.model104-box-son .row21>div {
    width: 100%;
    height: 33%;
    display: flex;
    align-items: center;
}

.model104-box-son .row21>.li1 {
    width: 100%;
    font-size: 1rem;
    font-weight: 600;
}

.model104-box-son .row21>.li2 {
    display: flex;
    justify-content: space-between;
    font-size: 0.6rem;
}

.model104-box-son .row21>.li2 p {
    width: 48%;
}

.text-overflow {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.model104-box-son .row21>.li3 {
    width: 100%;
    font-size: 0.8rem;
}

.model104-box-son .row22 {
    display: flex;
    align-items: center;
    justify-content: center;
}

.model104-box-son .row22>button {
    height: 2rem;
    width: 5rem;
    font-size: 1.1rem;
    color: #FFFFFF;
    border-radius: 1rem;
    background-color: #4095E5;
    border: none;
    cursor: pointer;
    line-height: 100%;
    text-align: center;
}

.color-grey {
    color: #bbbbbb;
}
</style>
